package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.HeartKnowledge;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HeartKnowledgeMapper {
    int addHeartKnowledge(HeartKnowledge heartKnowledge);
    int deleteHeartKnowledge(int id);
    int updateHeartKnowledge(HeartKnowledge heartKnowledge);
    List<HeartKnowledge> findAll();
    List<HeartKnowledge> findByName(String name);
}
